<?
if($_SESSION['dtype']!=9) {
    exit("不合法的身份访问！");
}
include '../common/autoload.php';
include COMMONPATH.'page.php';

$currentPage =$_REQUEST["currentPage"]?$_REQUEST["currentPage"]:1;
$pageSize    =$_REQUEST["pageSize"]?$_REQUEST["pageSize"]:20;
$offset     =($currentPage-1)*$pageSize;


include_once '/var/www/html/new/com.inc.php';
$sql = "select fid,aid,account,fromusername,createtime from uu_wx_member_pft order by id desc LIMIT $offset,$pageSize";
$le -> query($sql);
$mem_list  = array();
while($r = $le -> fetch_assoc()){
    $mem_list[] = $r;
}
// print_r($mem_list);

$sql = "select count(*) as total from uu_wx_member_pft";
$le -> query($sql);
$le -> fetch_assoc();
$total_rows = $le -> f('total');
// var_dump($total_rows);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script language="javascript" src="/js/jquery-1.8.0.min.js"></script>
    <title>微信账号绑定列表 - 票付通分销平台</title>
</head>
<body>
<link rel="stylesheet" href="/css/aliceui.min.css"/>
<link rel="stylesheet" href="/css/resetui.css"/>
<link rel="stylesheet" href="/css/page.css"/>
<link rel="stylesheet" href="css/list.css"/>
<link rel="stylesheet" href="//www.16u.com/manage/admin/css/dialog.css"/>
<div class="wrap">
    <a href="wx.php?dev=1">Click here , show more information!</a>
    <!--<form name="ourform" class="search_form ">
    <fieldset class="search-box">
        <legend>查询</legend>
        <table class="search-tbl" cellspacing="0">
            <tr>
                <td>
                    <label class="t">审核状态</label>
                    <select name="status">
                        <option value="-1" <?=!isset($_GET['status']) || $_GET['status']==-1? 'selected':'';?>>--不限--</option>
                        <option value="0" <?=isset($_GET['status']) && $_GET['status']==0? 'selected':'';?>>未审核</option>
                        <option value="1" <?=$_GET['status']==1? 'selected':'';?>>正常</option>
                        <option value="2" <?=$_GET['status']==2? 'selected':'';?>>拒绝</option>
                    </select>
                </td>
                <td>
                    <button id="searchBtn" type="submit" class="ui-button ui-button-lorange">查　找</button>
                </td>
            </tr>
        </table>
    </fieldset>
</form>-->
    <div class="ui-table-container">
        <table class="ui-table ui-table-noborder"><!-- 可以在class中加入ui-table-inbox或ui-table-noborder分别适应不同的情况 -->
        <thead>
            <tr>
                <th>票付通会员ID</th>
                <th>供应商ID</th>
                <th>帐号</th>
                <th>openid</th>
                <th>创建时间</th>
            </tr>
        </thead>
        <tbody id="tao_list_tbd">
        <? foreach($mem_list as $list): ?>
        <tr id="tr_<?=$list['fid']?>">
            <td><?=$list['fid']?></td>
            <td><?=$list['aid']?></td>
            <td><?=$list['account']?></td>
            <td><?=$list['fromusername']?></td>
            <td><?=$list['createtime']?></td>
        </tr>
        <? endforeach; ?>
        </tbody>
    </table>
        <?page($total_rows,$currentPage,$pageSize);?>
    </div>
</div>
</body>
</html>

